package com.xdwanj.criminalintent.pojo;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.util.Date;
import java.util.UUID;

@Entity
public class Crime {
    public Crime() {
    }

    public Crime(@NonNull UUID id, String title, Date date, boolean soled, String suspect) {
        this.id = id;
        this.title = title;
        this.date = date;
        this.soled = soled;
        this.suspect = "";
    }

    @NonNull
    @PrimaryKey
    private UUID id;

    private String title;

    private Date date = new Date();

    private boolean soled;

    @NonNull
    private String suspect;

    @NonNull
    public UUID getId() {
        return id;
    }

    public void setId(@NonNull UUID id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public boolean isSoled() {
        return soled;
    }

    public void setSoled(boolean soled) {
        this.soled = soled;
    }

    public String getSuspect() {
        return suspect;
    }

    public void setSuspect(String suspect) {
        this.suspect = suspect;
    }

    @Override
    public String toString() {
        return "Crime{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", date=" + date +
                ", soled=" + soled +
                ", suspect='" + suspect + '\'' +
                '}';
    }
}
